#ifndef OBJTOSQL_H
#define OBJTOSQL_H

#include <QString>
#include <QList>
#include <QtSql>
#include "laddatabasemanager.h"

class objToSQL
{
public:
    objToSQL();

    static const QString NomChampId;
    static const QString TypeVarId;

    void setId(int i);
    int getId()const;

    virtual QStringList SQLWhere()const;
    virtual QString SetQuery()const;
    virtual QStringList SetBindValues()const;

    virtual void BindValues(QSqlQuery &query, QStringList champs) = 0;

protected:
    int m_id;
};

#endif // OBJTOSQL_H
